package com.cloudlead.common.worker;

import com.cloudlead.common.worker.action.Action;
import com.cloudlead.common.lang.api.ActionRequest;
import com.cloudlead.common.lang.api.ActionResponse;

/**
 * 动作相关属性
 * 
 * @author dean.lu
 * 
 */
public class ActionContext {

	private ActionRequest request;

	private ActionResponse response;

	private Action<ActionRequest, ActionResponse> action;

	private String actionName;

	public ActionRequest getRequest() {
		return request;
	}

	public void setRequest(ActionRequest request) {
		this.request = request;
	}

	public ActionResponse getResponse() {
		return response;
	}

	public void setResponse(ActionResponse response) {
		this.response = response;
	}

	public Action<ActionRequest, ActionResponse> getAction() {
		return action;
	}

	public void setAction(Action<ActionRequest, ActionResponse> action) {
		this.action = action;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

}
